package com.hkj.shop.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hkj.shop.base.service.BaseService;
import com.hkj.shop.dao.UserDao;
import com.hkj.shop.model.User;
@Service
public class UserService extends BaseService {
	@Autowired
	private UserDao userDao;
	
	public User getUser(long id) {
		return userDao.query(id);
	}

	public List<User> getByAccount(String account) {
		
		return userDao.getByAccount(account);
	}
	
	
}
